package com.ruoyi.clothing.mapper;

import java.util.List;
import com.ruoyi.clothing.domain.SysOrderGoods;
import org.apache.ibatis.annotations.Mapper;

/**
 * 订单Mapper接口
 *
 * @author weh
 * @date 2024-01-04
 */
@Mapper
public interface SysOrderGoodsMapper
{
    /**
     * 查询订单
     *
     * @param id 订单主键
     * @return 订单
     */
    public SysOrderGoods selectSysOrderGoodsById(Long id);

    /**
     * 查询订单列表
     *
     * @param sysOrderGoods 订单
     * @return 订单集合
     */
    public List<SysOrderGoods> selectSysOrderGoodsList(SysOrderGoods sysOrderGoods);

    /**
     * 新增订单
     *
     * @param sysOrderGoods 订单
     * @return 结果
     */
    public int insertSysOrderGoods(SysOrderGoods sysOrderGoods);

    /**
     * 修改订单
     *
     * @param sysOrderGoods 订单
     * @return 结果
     */
    public int updateSysOrderGoods(SysOrderGoods sysOrderGoods);

    /**
     * 删除订单
     *
     * @param id 订单主键
     * @return 结果
     */
    public int deleteSysOrderGoodsById(Long id);

    /**
     * 批量删除订单
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysOrderGoodsByIds(Long[] ids);
}
